.product-list {
  display: flex;
  flex-direction: column;
  height: 100%; /* 占满父容器高度 */
  width: 100%; /* 占满父容器宽度 */
  overflow: hidden; /* 防止内容溢出 */
}

.product-list .tit {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  flex-shrink: 0; /* 标题部分不收缩 */
}

.product-list-container {
  flex: 1; /* 占据剩余空间 */
  min-height: 0; /* 修复flex容器滚动问题 */
  overflow: hidden; /* 隐藏内部溢出 */
}

.product-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  height: 100%; /* 占满父容器 */
  overflow-y: auto; /* 垂直滚动 */
}

.product-list li {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
  font-size: 20px;
}

.product-info {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: 24px;
}

.product-name {
  flex: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 120px;
  padding-right: 20px;
}

.product-price {
  flex: 1;
  min-width: 150px;
  padding-right: 20px;
}

.product-price span {
  color: #ff0f23;
  font-weight: 600;
}

.product-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.quantity-btn {
  font-size: 16px;
  padding: 4px 8px;
  cursor: pointer;
  color: #333;
  transition: all 0.3s;
  border-radius: 4px;
}

.quantity-btn:hover {
  background-color: #f0f0f0;
}

.quantity-btn.disabled {
  cursor: not-allowed;
  color: #ccc;
}

.quantity-value {
  min-width: 30px;
  text-align: center;
  margin: 0 5px;
  user-select: none; /* 添加这行防止文本被选中 */
  -webkit-user-select: none; /* Safari兼容 */
  -moz-user-select: none; /* Firefox兼容 */
  -ms-user-select: none; /* IE10+/Edge兼容 */
}

.delete-btn {
  font-size: 20px;
  color: #ff4d4f;
  cursor: pointer;
  margin-left: 20px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
}

.delete-btn:hover {
  background-color: #fff2f0;
  transform: scale(1.1);
}

.product-list li:hover {
  background-color: #f5f5f5;
}

.product-list li img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 20px;
}

.product-list li span {
  margin-right: 40px; 
  color: #555;
}

.product-list li .anticon-delete {
  font-size: 20px;
  color: #ff4d4f;
}

.product-list li .anticon-delete:hover {
  color: #ff7875;
}

.product-list li .anticon-plus,
.product-list li .anticon-minus {
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s;
}

.product-list li .anticon-plus:hover,
.product-list li .anticon-minus:hover {
  background-color: #f0f0f0;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.empty-cart-text {
  font-size: 24px;
  color: #ff85c0;
  margin-bottom: 10px;
  font-weight: 600;
}

.empty-cart-hint {
  font-size: 24px;
}